﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FrmMain
{
    class ServiceZ
    {
        Dao dao = new Dao();
        public int doLogin(string loginName, string loginPwd)
        {
            string sql = string.Format(@"select count(1)  from  admin  where loginName in ('{0}')  and loginPwd in ('{1}')", loginName, loginPwd);
            int result =Convert.ToInt32( dao.DoScalar(sql));
            return result; 
        }
    }
}
